package com.wbsxch.secondkill.mapper;

import com.wbsxch.secondkill.entity.SuccessKilled;
import org.apache.ibatis.annotations.Param;

public interface SuccessKilledMapper {

    /**
     * 插入购买明细,可过滤重复
     */
    int insertSuccessKilled(@Param("secondKillId") long secondKillId, @Param("phone") long phone);

    /**
     * 根据id查询秒杀明细
     * 并携带秒杀产品对象实体
     */
    SuccessKilled queryByIdWithSecondKill(@Param("secondKillId") long secondKillId, @Param("phone") long phone);
}
